/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core;

/**
 *
 * @author Hapsari
 */
public class mapContent {
    
    mapContent(){
    
    }
        
    public static boolean isRumput(int x, int y){
        if (Map.getTile(x, y) == '#')
            return true;
        else
            return false;
    }
    
    public static boolean isJalan(int x, int y){
        if (Map.getTile(x, y) == '.')
            return true;
        else
            return false;
    }
    
    public static boolean isPabrik(int x, int y){
        if (Map.getTile(x, y) == 'P')
            return true;
        else
            return false;
    }
    
    public static boolean isVendor(int x, int y){
        if (!(isRumput(x,y)) && !(isJalan(x,y) && (!isPabrik(x,y))))
            return true;
        else
            return false;
    }   
    
}